package com.caocaog.market.entity.dto;

import com.getui.push.v2.sdk.dto.res.statistic.StatisticDTO;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * 推送统计DTO（可序列化）
 */
public class PushStatisticDTO extends StatisticDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    public static PushStatisticDTO convertFor(StatisticDTO statisticDTO) {
        if (statisticDTO == null) return null;
        PushStatisticDTO pushStatisticDTO = new PushStatisticDTO();
        BeanUtils.copyProperties(statisticDTO, pushStatisticDTO);
        return pushStatisticDTO;
    }

}
